package com.itclass.auth.service.impl;




import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itclass.auth.mapper.SysRoleMapper;
import com.itclass.auth.mapper.SysUserRoleMapper;
import com.itclass.auth.pojo.db.SysRole;
import com.itclass.auth.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {


    @Autowired
    private SysUserRoleMapper sysUserRoleMapper;
    @Override
    public List<String> queryUserRoleByUserId(Long userId) {

        return sysUserRoleMapper.queryUserRoleByUserId(userId);
    }
}